<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/stream/ConstString.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_090521d29e73b40f7fc0a63254d8965e.html">stream</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ConstString.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_const_string_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __CONSTSTRING_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __CONSTSTRING_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_____const_string_8h.html">./internal/__ConstString.h</a>&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;iosfwd&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<a class="code" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="_const_string_8h.html#a819230495cfaf61d1747905c56276fcf">   12</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="class_c_const_string_t.html">CConstStringT&lt;char&gt;</a> <a class="code" href="_const_string_8h.html#a819230495cfaf61d1747905c56276fcf">CConstString</a>;</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="_const_string_8h.html#afa1aeea3a7117aab7b5a915b2141ab64">   17</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="class_c_const_string_t.html">CConstStringT&lt;WCHAR&gt;</a> <a class="code" href="_const_string_8h.html#afa1aeea3a7117aab7b5a915b2141ab64">CConstWString</a>;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="_const_string_8h.html#ad4a283f9dcc4863f4b143e2b52050dec">   19</a></span>&#160;<span class="keyword">inline</span> std::ostream&amp; <a class="code" href="_const_string_8h.html#ad4a283f9dcc4863f4b143e2b52050dec">operator&lt;&lt; </a>(std::ostream&amp; out, <span class="keyword">const</span> <a class="code" href="_const_string_8h.html#a819230495cfaf61d1747905c56276fcf">CConstString</a>&amp; str)</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;{</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    out &lt;&lt; std::string(str.begin(), str.end());</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="keywordflow">return</span> out;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;}</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="_const_string_8h.html#aaf57a26664f5527a9da6d1426fc104bd">   25</a></span>&#160;<span class="keyword">inline</span> std::wostream&amp; <a class="code" href="_const_string_8h.html#ad4a283f9dcc4863f4b143e2b52050dec">operator&lt;&lt; </a>(std::wostream&amp; out, <span class="keyword">const</span> <a class="code" href="class_c_const_string_t.html">CConstWString</a>&amp; str)</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    out &lt;&lt; std::wstring(str.<a class="code" href="class_c_const_string_t.html#a3d9da935871b6c631b798cf121e2a2e0">begin</a>(), str.<a class="code" href="class_c_const_string_t.html#a03f324d2e3a86a3e6a95213b6e1f203b">end</a>());</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keywordflow">return</span> out;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;}</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<a class="code" href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#endif // __CONSTSTRING_H__</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="a_const_string_8h_html_ad4a283f9dcc4863f4b143e2b52050dec"><div class="ttname"><a href="_const_string_8h.html#ad4a283f9dcc4863f4b143e2b52050dec">operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;out, const CConstString &amp;str)</div><div class="ttdef"><b>Definition:</b> <a href="_const_string_8h_source.html#l00019">ConstString.h:19</a></div></div>
<div class="ttc" id="atools_8h_html_a201ce692c9dca6599e5c12d00167419b"><div class="ttname"><a href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div><div class="ttdeci">#define DEF_BEG_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00036">tools.h:36</a></div></div>
<div class="ttc" id="aclass_c_const_string_t_html_a03f324d2e3a86a3e6a95213b6e1f203b"><div class="ttname"><a href="class_c_const_string_t.html#a03f324d2e3a86a3e6a95213b6e1f203b">CConstStringT::end</a></div><div class="ttdeci">iterator end() const</div><div class="ttdoc">返回字符串结束位置</div><div class="ttdef"><b>Definition:</b> <a href="_____const_string_8h_source.html#l00057">__ConstString.h:57</a></div></div>
<div class="ttc" id="a_const_string_8h_html_a819230495cfaf61d1747905c56276fcf"><div class="ttname"><a href="_const_string_8h.html#a819230495cfaf61d1747905c56276fcf">CConstString</a></div><div class="ttdeci">DEF_BEG_LIBTOOLS typedef CConstStringT&lt; char &gt; CConstString</div><div class="ttdoc">常量字符串类</div><div class="ttdef"><b>Definition:</b> <a href="_const_string_8h_source.html#l00012">ConstString.h:12</a></div></div>
<div class="ttc" id="aclass_c_const_string_t_html"><div class="ttname"><a href="class_c_const_string_t.html">CConstStringT</a></div><div class="ttdoc">字符串类-const限定符 只接受源字符串指针和大小，内部不参与管理内存</div><div class="ttdef"><b>Definition:</b> <a href="_____const_string_8h_source.html#l00014">__ConstString.h:14</a></div></div>
<div class="ttc" id="atools_8h_html_ac909db71799bb22cb7d636a34cd785e4"><div class="ttname"><a href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div><div class="ttdeci">#define DEF_END_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00038">tools.h:38</a></div></div>
<div class="ttc" id="a_const_string_8h_html_afa1aeea3a7117aab7b5a915b2141ab64"><div class="ttname"><a href="_const_string_8h.html#afa1aeea3a7117aab7b5a915b2141ab64">CConstWString</a></div><div class="ttdeci">CConstStringT&lt; WCHAR &gt; CConstWString</div><div class="ttdoc">常量宽字符串类</div><div class="ttdef"><b>Definition:</b> <a href="_const_string_8h_source.html#l00017">ConstString.h:17</a></div></div>
<div class="ttc" id="a_____const_string_8h_html"><div class="ttname"><a href="_____const_string_8h.html">__ConstString.h</a></div></div>
<div class="ttc" id="aclass_c_const_string_t_html_a3d9da935871b6c631b798cf121e2a2e0"><div class="ttname"><a href="class_c_const_string_t.html#a3d9da935871b6c631b798cf121e2a2e0">CConstStringT::begin</a></div><div class="ttdeci">iterator begin() const</div><div class="ttdoc">返回字符串首位置</div><div class="ttdef"><b>Definition:</b> <a href="_____const_string_8h_source.html#l00054">__ConstString.h:54</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
